/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assignment2.question3.correctingLSP.Impl;

/**
 *
 * @author Ziyaad
 */
public class AthletePerson extends PersonImpl {
    
    private int age;

    /**
     * @return the age
     */
    public int getAge() {
        return age;
    }

    /**
     * @param age the age to set
     */
    public void setAge(int age) {
        this.age = age;
    }
    
    public int calcMaxHR()
    {
        return 220 - age;
    }
    
    
    
}
